#pragma once
#include <iostream>
#include <cstdlib>
#include <boost\asio.hpp>
#include <boost\thread.hpp>
#include <string>

using boost::asio::ip::tcp;
using namespace boost;
using namespace std;

class ConnectionPOP3
{
private:
	tcp::socket* socket;
	string to;

	void handleMessage(char buffer[], size_t countBytes);
public:
	ConnectionPOP3(tcp::socket* s);
	~ConnectionPOP3(void);
	void run();
};

